core: Add code to read/write "varints"
authorColin Walters <walters@verbum.org>
Thu, 15 Aug 2013 13:03:21 +0000 (09:03 -0400)
committerColin Walters <walters@verbum.org>
Fri, 11 Oct 2013 16:21:37 +0000 (12:21 -0400)
commit3b700ccb504b4608cfc533ec4fd3645b4a33918a
tree9b01987c799d72e3d756aa2408888ed868b6c6fd
parent2b37abf7b63e797aebf4121a4875decbd8db5c33
core: Add code to read/write "varints"

Adapted from Google protobufs.  For several cases, we want to support
e.g. file sizes up to guint64, but paying the cost of 8 bytes for each
number is too high.

This will be used for static deltas and sizes metadata.
Makefile-libostree.am
Makefile-tests.am
src/libostree/ostree-varint.c [new file with mode: 0644]
src/libostree/ostree-varint.h [new file with mode: 0644]
tests/test-varint.c [new file with mode: 0644]